package com.hill;


public class ClassAndObject {
    public static void main(String[] args) {
        Student s1 =  new Student();
        Student s2 =  new Student();
        s1.name="hill";
        s1.age=35;
        s2.name="piter";
        s2.age=28;
        System.out.println(s1.name);
        System.out.println(s1.age);
        System.out.println(s2.name);
        System.out.println(s2.age);
        s1.study();
        s2.rest();
    }


}
